package com.rentong.wx.sys.dao;

import com.rentong.wx.cust.dto.CityHierarchy;
import com.rentong.wx.sys.domain.SysCityEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * 省市区数据表
 * 
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:30
 */
@Mapper
public interface SysCityDao extends BaseMapper<SysCityEntity> {

    List<SysCityEntity> getAllCity();

    List<SysCityEntity> getHotCity();

    List<SysCityEntity> getProvinceAndCityLabel(Long pid);

    SysCityEntity getCityByName(@Param("cityName") String cityName);

    CityHierarchy getByRegionName(@Param("regionName") String regionName);
}
